package fracPackage;

public class pObject{
	private double re, im;
	
	public pObject(double x, double y)
	{
		re = 0; im = 0;
	}
	
	public void iterate (Iteration iter, double x, double y)
	{
		double oldRe = re;
		re = re*re - im*im + x;
		im = 2*im*oldRe + y;
	}
	public boolean isOut   (Iteration iter, double x, double y)
	{
		return re*re + im*im > 4;
	}
}